#ifndef WIDGET_H
#define WIDGET_H

#include <QWidget>
#include "mywork.h"
#include <QThread>
#include <QPushButton>
#include <QTextBrowser>
#include <QGridLayout>
#include "mybutton.h"

class Widget : public QWidget
{
    Q_OBJECT

public:
    Widget(QWidget *parent = nullptr);
    ~Widget();

private:
    mywork *mk = nullptr;
    QThread *mt;
    QTextBrowser *ts = new QTextBrowser(this);
    mybutton *btn = new mybutton("开始",this);
    QGridLayout *gid = new QGridLayout(this);
signals:
    void startWork(QString work);

public slots:
    void workResult(QString ret);
};
#endif // WIDGET_H
